package cn.com.nes.mybatis.agent.crm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 客户表
 * @TableName customer
 */
@TableName(value ="customer")
@Data
public class Customer implements Serializable {
    /**
     * 
     */
    @TableId(value = "uuid")
    private String uuid;

    /**
     * 所属公司
     */
    @TableId(value = "company_id")
    private String companyId;

    /**
     * 联系电话
     */
    @TableId(value = "phone")
    private String phone;

    /**
     * 客户性质（直销客户  签约经销商 生产厂家  其他）
     */
    @TableField(value = "customernature")
    private String customerNature;

    @TableField(exist = false)
    private String customerNatureName;

    /**
     * 业务类型（空气热源泵   生物质锅炉等产品分类）
     */
    @TableField(value = "businesstype")
    private String businessType;

    @TableField(exist = false)
    private String businessTypeName;

    /**
     * 客户级别：（一级  二级  三级）
     */
    @TableField(value = "customerlevel")
    private String customerLevel;

    @TableField(exist = false)
    private String customerLevelName;

    /**
     * 上级公司
     */
    @TableField(value = "superiorcompany")
    private String superiorCompany;

    /**
     * 客户姓名
     */
    @TableField(value = "customername")
    private String customerName;

    /**
     * 行政区划
     */
    @TableField(value = "xzqhdm")
    private String xzqhdm;

    /**
     * 地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 负责人
     */
    @TableField(value = "personincharge")
    private String personInCharge;

    /**
     * 备注
     */
    @TableField(value = "memo")
    private String memo;

    /**
     * 经销商唯一编码
     */
    @TableField(value = "distributorcode")
    private String distributorCode;

    /**
     * 经销商类型
     */
    @TableField(value = "distributortype")
    private String distributorType;

    /**
     * 渠道部负责人
     */
    @TableField(value = "channelperson")
    private String channelPerson;

    /**
     * 公司性质
     */
    @TableField(value = "natureofcompany")
    private String natureOfCompany;

    /**
     * 公司法人
     */
    @TableField(value = "legalperson")
    private String legalPerson;

    /**
     * 成立时间
     */
    @TableField(value = "establishmenttime")
    private Date establishmentTime;

    /**
     * 统一信用代码
     */
    @TableField(value = "unifiedcreditcode")
    private String unifiedcreditCode;

    /**
     * 注册资本
     */
    @TableField(value = "registeredcapital")
    private BigDecimal registeredCapital;

    /**
     * 业务范围
     */
    @TableField(value = "scopeofbusiness")
    private String scopeOfBusiness;

    /**
     * 经度
     */
    @TableField(value = "longitude")
    private BigDecimal longitude;

    /**
     * 纬度
     */
    @TableField(value = "latitude")
    private BigDecimal latitude;

    /**
     * 公司网站
     */
    @TableField(value = "website")
    private String website;

    /**
     * 创建者uid
     */
    @TableField(value = "createUid")
    private String createUid;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 修改者uid
     */
    @TableField(value = "modifyUid")
    private String modifyUid;

    /**
     * 修改时间
     */
    @TableField(value = "modifyTime")
    private Date modifyTime;

    /**
     * 是否删除
     */
    @TableField(value = "isdelete")
    private String deleted;

    /**
     * 
     */
    @TableField(value = "jsondata")
    private String jsonData;

    /**
     * 模板ID
     */
    @TableField(value = "templateId")
    private String templateId;

    /**
     * 企业名称
     */
    @TableField(value = "cluecompany")
    private String clueCompany;

    /**
     * 企业身份
     */
    @TableField(value = "pooltype")
    private String poolType;

    /**
     * 企业联系人
     */
    @TableField(value = "companycontact")
    private String companyContact;

    /**
     * 联系人职务
     */
    @TableField(value = "personpost")
    private String personPost;

    /**
     * 业务方向
     */
    @TableField(value = "businessdirection")
    private String businessDirection;

    /**
     * 备注
     */
    @TableField(value = "companyMemo")
    private String companyMemo;

    /**
     * 用户的微信openId
     */
    @TableField(value = "openId")
    private String openId;

    /**
     * 活动uuid
     */
    @TableField(value = "activeUuid")
    private String activeUuid;

    /**
     * 性别
     */
    @TableField(value = "sex")
    private String sex;

    /**
     * 线索ID
     */
    @TableField(value = "clueId")
    private String clueId;

    /**
     * 客户来源 值域对应t_param表 param_type=13
     */
    @TableField(value = "customer_source")
    private String customerSource;

    /**
     * 客户来源名称
     */
    @TableField(exist = false)
    private String customerSourceName;

    /**
     * 客户所属人名称
     */
    @TableField(exist = false)
    private String customerOwnerName;


    /**
     * 客户所属人ID
     */
    @TableField(value = "customer_owner_id")
    private Long customerOwnerId;

    /**
     * 客户编号-电表号
     */
    @TableField(value = "electricity_meter_numbers")
    private String electricityMeterNumbers;

    /**
     * 客户编号-燃气表号
     */
    @TableField(value = "gas_meter_numbers")
    private String gasMeterNumbers;

    /**
     * 上级客户id
     */
    @TableField(value = "super_customer_id")
    private String superCustomerId;

    /**
     * 身份证号码
     */
    @TableField(value = "id_card_number")
    private String idCardNumber;

    /**
     * 客户编号
     */
    @TableField(value = "customer_code")
    private String customerCode;

    /**
     * 用能主体性质编码
     */
    @TableField(value = "energy_use_property_code")
    private String energyUsePropertyCode;

    /**
     * 计划年份
     */
    @TableField(value = "plan_year")
    private String planYear;

    /**
     * 是否本村户籍
     */
    @TableField(value = "is_villagers")
    private Boolean villagers;
    @TableField(value = "is_house_holder")
    private String  isHouseholder;
    /**
     * 商机数量
     */
    @TableField(exist = false)
    private Integer oppoCount;
    @TableField(exist = false)
    private String sbId;
    @TableField(exist = false)
    private String sbUuid;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 商城客户id
     */
    @TableField(value = "mer_customer_id")
    private String merCustomerId;
}